package com.cade.agriculturemall.view.shoppingCar.settlement;

import com.cade.agriculturemall.base.IBasePresenter;
import com.cade.agriculturemall.base.IBaseView;
import com.cade.agriculturemall.bean.NodeModel;
import com.cade.agriculturemall.model.AddressEntity;
import com.cade.agriculturemall.model.OrderEntity;
import com.cade.agriculturemall.model.ShoppingCarsEntity;
import com.cade.agriculturemall.model.Ticket;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by Lobby on 2017/12/25.
 */

public interface SettlementContract {
    interface IView extends IBaseView {
        void getAddress(AddressEntity getEntity);

        void skipNext();

        void getList(List<AddressEntity> list);

        void getTicket(List<Ticket> list);
    }

    interface IPresenter extends IBasePresenter {
        void bingTicket(String ticketId);

        void getFitTicketList(Float money);

        void getFirstAddress();

        ArrayList getOrderObjList();


        void getRefreshAddress(String objectId);


        void removeCar(final String deal, final List<ShoppingCarsEntity> goods, final OrderEntity orderEntity);//从购物删除



        void creatInOrder(final String dealNo, OrderEntity entity, HashMap<String, NodeModel> hashMap);

        String getUserId();

        void setType(String type);
    }
}
